<style>

</style>

<template>
  <div class="error">
    <div class="error-body-con">
      <div>
        <div class="error-body-con-title">
          <div class="error-span-wrapper">
            4
          </div>
          <div class="error-span-wrapper">
            <span class="error-span error-span-error">
              <i class="iconfont no-animation">&#xe644;</i>
            </span>
          </div>
          <div class="error-span-wrapper">
            <span class="error-span error-span-border">
              <i class="iconfont">&#xe728;</i>
            </span>
          </div>
        </div>
        <p class="error-body-con-message">An unexpected network error occurred</p>
        <div class="error-btn-con">
          <el-button @click="goHome" size="large" style="width: 200px;" type="text">返回首页</el-button>
          <el-button @click="backPage" size="large" style="width: 200px;margin-left: 40px;" type="primary">返回上一页</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    backPage() {
      this.$router.go(-1);
    },
    goHome() {
      this.$router.push({
        path: "/"
      });
    }
  }
};
</script>
